home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / dnet / dnet2.10.13.lha / DNet / Amiga / Sourcen.lha / lib / deof.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-14  |  354 b   |  24 lines

  1.  
  2. /*
  3.  *  DEof.C
  4.  */
  5.  
  6. #include "lib.h"
  7.  
  8. void
  9. DEof(_chan)
  10. void *_chan;
  11. {
  12.     CHANN *chan = (CHANN *)_chan;
  13.     IOSTD ior;
  14.  
  15.     ior.io_Command = DNCMD_EOF;
  16.     ior.io_Unit = (void *)chan->chan;
  17.     ior.io_Offset = (long)chan;
  18.     ior.io_Message.mn_ReplyPort = (PORT *)chan;
  19.     PutMsg(chan->dnetport, (MSG *)&ior);
  20.     WaitMsg(&ior);
  21.     FixSignal(chan);
  22. }
  23.  
  24.